package com.sz.stock.model;

import java.math.BigDecimal;

public class Stock {
    private Integer stockId;

    private String stockCode;

    private String stockCompany;

    private Integer stockVolume;

    private BigDecimal stockTurnover;

    private BigDecimal stockUpanddowns;

    private BigDecimal stockTotalprice;


    public Stock(Integer stockId, String stockCode, String stockCompany, Integer stockVolume, BigDecimal stockTurnover, BigDecimal stockUpanddowns, BigDecimal stockTotalprice) {
        this.stockId = stockId;
        this.stockCode = stockCode;
        this.stockCompany = stockCompany;
        this.stockVolume = stockVolume;
        this.stockTurnover = stockTurnover;
        this.stockUpanddowns = stockUpanddowns;
        this.stockTotalprice = stockTotalprice;
    }

    public Stock(Integer stockId, String stockCode, String stockCompany) {
        this.stockId = stockId;
        this.stockCode = stockCode;
        this.stockCompany = stockCompany;
    }

    public Stock() {
        super();
    }

    public Integer getStockId() {
        return stockId;
    }

    public void setStockId(Integer stockId) {
        this.stockId = stockId;
    }

    public String getStockCode() {
        return stockCode;
    }

    public void setStockCode(String stockCode) {
        this.stockCode = stockCode == null ? null : stockCode.trim();
    }

    public String getStockCompany() {
        return stockCompany;
    }

    public void setStockCompany(String stockCompany) {
        this.stockCompany = stockCompany == null ? null : stockCompany.trim();
    }

    public Integer getStockVolume() {
        return stockVolume;
    }

    public void setStockVolume(Integer stockVolume) {
        this.stockVolume = stockVolume;
    }

    public BigDecimal getStockTurnover() {
        return stockTurnover;
    }

    public void setStockTurnover(BigDecimal stockTurnover) {
        this.stockTurnover = stockTurnover;
    }

    public BigDecimal getStockUpanddowns() {
        return stockUpanddowns;
    }

    public void setStockUpanddowns(BigDecimal stockUpanddowns) {
        this.stockUpanddowns = stockUpanddowns;
    }

    public BigDecimal getStockTotalprice() {
        return stockTotalprice;
    }

    public void setStockTotalprice(BigDecimal stockTotalprice) {
        this.stockTotalprice = stockTotalprice;
    }

    @Override
    public String toString() {
        return "Stock{" +
                "stockId=" + stockId +
                ", stockCode='" + stockCode + '\'' +
                ", stockCompany='" + stockCompany + '\'' +
                ", stockVolume=" + stockVolume +
                ", stockTurnover=" + stockTurnover +
                ", stockUpanddowns=" + stockUpanddowns +
                ", stockTotalprice=" + stockTotalprice +
                '}';
    }
}